// JavaScript Document
// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
var oPLoad = 
{
	init:function()
	{
		this.shopinfo();
	},
	shopinfo:function()
	{
		(new Json()).load(url.en({Pact:"shopinfo",urs:_oPct_.urs},"/shop/dwr.php"),"oPLoad.callback_shopinfo");
	},
	callback_shopinfo:function(o)
	{
		var el = _.e("urs_im");
		el.innerHTML = IM(o.im).join(' ');
	}	
}
var ReloadReset = function()
{
	//var el = _.e("ReloadResetId");
	//el.innerHTML = el.innerHTML;
	var el  = _.e("ReloadResetIdImg");
	el.src  = el.src+"?"+_.rand(); 
}
var addNewAddress = function(o)
{
	var rs = [],el=_.e("addUserAddr");
	if(o && o.checked)
	{
		rs.push('<table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">');
			rs.push('<tr>');
				rs.push('<td width="15%" align="right"><span>*</span>收货人姓名：</td>');
				rs.push('<td width="85%"><input name="real_name" require="1" type="text"  size="20" id="real_name"/></td>');
			rs.push('</tr><tr>');
				rs.push('<td align="right"><span>*</span>国家：</td>');
				rs.push('<td><input name="country" type="text" require="1" id="country" value="中国" size="12" /></td>');
			rs.push('</tr><tr>');
				rs.push('<td align="right"><span>*</span>所在地区：</td>');
				rs.push('<td><input name="address_province" require="1" type="text" id="address_province" value="台湾" size="8" />&nbsp;&nbsp;');
				rs.push('<input name="address_city" require="1" type="text" id="address_city" size="8" />市&nbsp;&nbsp;');
				rs.push('<input name="address_borough" require="1" type="text" id="address_borough" size="10" />镇/区</td>');
			rs.push('</tr><tr>');
				rs.push('<td align="right"><span>*</span>街道地址：</td>');
				rs.push('<td><input name="address" require="1" type="text" size="40" />(不需要重复填写省/市/区) </td>');
			rs.push('</tr><tr>');
				rs.push('<td align="right"><span>*</span>邮政编码：</td>');
				rs.push('<td><input name="zip" require="1" type="text" size="8" id="address" /></td>');
			rs.push('</tr><tr>');
				rs.push('<td align="right"><span>*</span>电话/手机：</td>');
				rs.push('<td><input name="tel" require="1" type="text" size="20" id="tel" />固定话请写上区号</td>');
			rs.push('</tr>');
		rs.push('</table>');
		el.style.display = "";
		el.innerHTML = rs.join("");
	}else
	{
		el.style.display = "none";
		el.innerHTML 	 = "";
	};
}